const releaseContent = ref([])
const designatedStore = ref([])

export const useIssueAction = () => {
  return {
    releaseContent,
    designatedStore
  }
}

export const useStoreAction = () => {
  const tableForms = ref([
    {
      label: '',
      prop: 'name',
      type: 'input',
      placeholder: '门店ID/名称',
      clearable: true,
      model: '',
    },
  ])
  const tableConfig = ref([
    {
      label: '门店ID',
      prop: 'storeId',
      textOverflow:true,
    },
    {
      label: '门店名称',
      prop: 'storeName',
    },
  ])
  return{
    tableForms, 
    tableConfig
  }
}

export const useCouponAction = () => {
  const tableForms = ref([])
  const tableConfig = ref([
    {
      label: '优惠劵名称',
      prop: 'couponName',
      textOverflow:true,
      width:150
    },
    {
      label: '赠券数',
      prop: 'couponNum',
      width:132,
      type:'slot',
      slotName:'couponNum',
      needHeader:true,
      slotHeaderName:'couponNumHeader'
    },
    {
      label: '剩余数量',
      prop: 'surplusQuantity',
      width:100,
    },
    {
      label: '优惠内容',
      prop: 'promotionalContent',
      width:120,
      type:'slot',
      slotName:'promotionalContent'
    },
    {
      label: '备注名称',
      prop: 'remarksName',
      width:100,
    },
    {
      label: '使用时间',
      prop: 'serviceTime',
      width:326,
    },
  ])
  return{
    tableForms, 
    tableConfig
  }
}